<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <h:head>

        <link href="#{facesContext.externalContext.requestContextPath}/restrito/default.css" rel="stylesheet" type="text/css" />
        <link href="#{facesContext.externalContext.requestContextPath}/restrito/cssLayout.css" rel="stylesheet" type="text/css" />
        <title></title>
   
    </h:head>

    <style>
        body {
            margin:0;
            background-color: #FFFFFF;
            padding:0;
        } 
        #imgFundo {
            background: #FFFFFF;
            width: auto;
            height: auto;
            position: relative;
            z-index: -1;
        }

        #loginForm {
            background: none repeat scroll 0 0  #E8E8E8;
            opacity:0.7;
            filter:alpha(opacity=70);
            -moz-opacity: 0.70; 
            height: 300px;
            width: auto;
            min-width: 40%;
            margin-left: 0px;
            margin-top: 150px;
            position: absolute;   
            z-index: 2;
        }

        #loginImage {
            background: none repeat scroll 0 0  #E8E8E8;
            float: left;
            clear: both;
            display: block;
            height: 100px;
            margin-left: 40px;
            margin-top: 60px;
            position: relative;
            width: auto;
            min-width: 20%;
            z-index: 4  ;

        }

        #loginField {
            background: none repeat scroll 0 0  #E8E8E8;
            height: 230px;
            margin-left: 600px;
            margin-top: 25px;
            position: relative;
            text-align: left;
            width: auto;
            min-width: 300px;
            z-index: 999;
        }

        #loginTitle {
            background: none repeat scroll 0 0 #424548;
            height: 25px;
            width: 100%;
            margin-left: 0px;
            margin-top: 0px;
            position: relative;   
            z-index: 600;

        }

        .textTitle{
            font-family: Trebuchet,MS,Tahoma,Verdana,Arial,sans-serif;
            font-weight: bold;
            margin-left: 70%;
            vertical-align: middle;
            color: #FFFFFF;   
        }

        .textLabel{
            font-family: Trebuchet,MS,Tahoma,Verdana,Arial,sans-serif;
            font-weight: bold;
            color: #222222;
            font-size: 12px;
        }
        
        #rodapeLogin{
            width: 100%;
            height: 2px;
            clear: both;
            position: relative;
            background-color:#9ACD32;
            margin-top: 0px;
            z-index: 4;
        }
        #rodapecontent{
            text-align: left;
            position: relative;
            margin-top: 0px;
            margin-left: 50px;
        }

        #rodapecontent p {
            font-family: arial;
            font-size: 12px;
            font-weight: bold;
            color: #9ACD32;
        }


        .colFormleft{
            text-align: left;
            margin-left: 1%;
        }
        .colFormRight{    

        }
        
        .ui-inputfield {
            background: none repeat scroll 0 0 #FFFFFF !important;
            box-shadow: 0 2px 2px #FFFFFF inset !important;
        }
        
        .ui-corner-all {
            border-radius: 0 0 0 0;
        }
        
        .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
            background: #DFEFFC;
            border: 1px solid #8B8989;
            color: #222222;
            font-weight: bold;
        }
        
        .ui-inputfield.ui-state-focus {
            box-shadow: 0 0 5px #9ACD32, 0 2px 2px #9ACD32 inset !important;
        }
        
        .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
            background: #EEEEEE;
            border: 1px solid #8B8989;
            color: #222222;
            font-weight: bold;
        }
        
        .ui-corner-top {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
        
        .ui-widget-header {
            background: repeat-x scroll 50% 50% #9ACD32;
            border: 1px solid #8B8989;
            color: #FFFFFF;
            font-weight: bold;
        }
        
        .ui-widget-content {
            background: url("/gtt-admin/javax.faces.resource/images/ui-bg_inset-hard_100_fcfdfd_1x100.png.jsf?ln=primefaces-redmond") repeat-x scroll 50% bottom #FCFDFD;
            border: 1px solid #8B8989;
            color: #222222;
        }
        
        #messageinitial{
            float: left;
            margin-right: 100px;
        }
        
    </style>

    <h:body>

        <div id="imgFundo">
        </div>          
        

        <div id="loginForm">

            <div id="loginTitle"> <h:outputText id="titleLogin" value="#{msgs.loginTitulo}" styleClass="textTitle" style="vertical-align: middle !important"/>

            </div>
            <div id="loginImage">               
               <!-- <img src="img/gtthealth_logo.png"  alt="fgtt"/> -->
            </div>
            
           <div id="loginField">

                <h:form id="formLogin">

                    <p:growl id="msgs" showDetail="false" />
                              
                   
                    <h:panelGrid id="pngLabel" cellspacing="15" styleClass="LoginFormField" columns="2" columnClasses="colFormleft,colFormRight">

                        <h:outputLabel for="txtUsername" value="#{msgs.loginUsuario}: " styleClass="textLabel"/>
                        <p:inputText id="txtUsername" binding="#{loginMB.login}" required="false" size="25"/>

                        <h:outputLabel  for="txtSenha" value="#{msgs.loginSenha}: " styleClass="textLabel" />
                        <p:password id="txtSenha" binding="#{loginMB.senha}" feedback="false" size="25"/>  
                        
                        <h:outputLabel  for="txtInstituicao" value="#{msgs.loginInstituicao}: " styleClass="textLabel" />
                        <p:inputText id="txtInstituicao" binding="#{loginMB.instituicao}" required="false" size="25"/>  

                        <h:outputText value=""/>
                        <p:commandButton value="#{msgs.loginBtnEntrar}" id="btnEntrar" action="#{loginMB.autenticacao}" ajax="false"/>

                    </h:panelGrid>         

                </h:form> 

            </div>

        </div>

       

    </h:body>
    
</html>